package com.itheima.demo03functionalinterface;

import java.util.function.Function;

public class Demo06FunctionAndThen {
    public static void main(String[] args) {
        getNumber(Integer::parseInt,i->i*5);
    }
    public static void getNumber(Function<String,Integer> f1,Function<Integer,Integer> f2){
        System.out.println("aa");
        Integer num2 = f1.andThen(f2).apply("6");
        System.out.println("num2 = " + num2);
    }
}
